package com.sxhuayuan.parking.plugin.parking.bluecard.request;

public enum PayChannel {
    // 预支付
    prepay("预支付"), 
    // 出口扫码
    exit("出口扫码"), 
    // 无感支付
    partnerpay("无感付"), 
    // 无牌车扫码
    anno("无牌车扫码"), 
    // 人工缴费
    manual("人工缴费");

    private String cname;

    PayChannel(String cname) {
        this.cname = cname;
    }

    public static PayChannel getByName(String name) {
        PayChannel[] enums = PayChannel.values();
        for (PayChannel payChannel : enums)
            if (payChannel.name().equals(name))
                return payChannel;
        return manual;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

}
